// Copyright 2021 Guoyoko. All Rights Reserved.

#pragma once

#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"
#include "SlateBasics.h"


class SSWLevelEditor : public SCompoundWidget
{
	
public:
	SLATE_BEGIN_ARGS(SSWLevelEditor) {}

	SLATE_END_ARGS()

	/**
	 * Constructs this widget
	 *
	 * @param InArgs    Declaration from which to construct the widget
	 */
	void Construct(const FArguments& InArgs);

	void Initialize(const TSharedRef<SDockTab>& OwnerTab);

private:

	TSharedRef<SWidget> RestoreContentArea(const TSharedRef<SDockTab>& OwnerTab);

	TSharedPtr<FTabManager::FLayout> RestoreLayout();

	TSharedRef<SDockTab> SpawnLevelEditorTab(const FSpawnTabArgs& Args, FName TabIdentifier);
};

